﻿<%@ Assembly Name="WoltersKluwer.SPChainGang.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=13876dddec4575d6" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SPChainGangWarden.aspx.cs" Inherits="WoltersKluwer.SPChainGang.Web.ChainGangApplicationPages.SPChainGangWarden" MasterPageFile="~/_admin/admin.master" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="LinksTable" Src="/_controltemplates/LinksTable.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="LinkSection" Src="/_controltemplates/LinkSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ActionBar" Src="/_controltemplates/ActionBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="/_controltemplates/ToolBarButton.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="Welcome" Src="/_controltemplates/Welcome.ascx" %>
<%@ Register TagPrefix="ChainGang" TagName="ListPicker" Src="/_controltemplates/WK/ListPicker.ascx" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="OSRVWC" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls"
    Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SEARCHWC" Namespace="Microsoft.Office.Server.Search.WebControls"
    Assembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls"
    Assembly="Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <script>
        function UpdatePage(typeParam, typeVal) {
            $.blockUI({ message: null });
            var sLookup = "Lookup";
            var sUser = "User";
            var sLLArg = "&LookupListParam=";
            var sLLVal = "";
            var sPresArg = "&ShowPresence=";
            var sPresVal = "";
            var sURL = window.location.href;
            var sDescriptionArg = "&DescriptionParam=";
            var sNewUrl;
            sNewUrl = StURLSetVar2(sURL, typeParam, typeVal);
            sNewUrl = sNewUrl + sLLVal + sPresVal;
            if (sNewUrl.length > 2040)
                STSNavigate(StURLSetVar2(sURL, typeParam, typeVal) + sLLVal);
            else
                STSNavigate(sNewUrl);
            return true;
        }
    </script>
    <SharePoint:ScriptLink ID="jqueryLink" runat="server" Name="jquery-1.4.2.min.js" />
    <SharePoint:ScriptLink ID="jqueryBlockUILink" runat="server" Name="jquery.blockUI.min.js" />
    <script type="text/javascript" language="javascript">
        jQuery.fx.off = true;
        showOption = "fast";

        $(document).ready(function () {

            var addButton = $("#<%=AddJob.ClientID %>");
            addButton.click(function () {
                UpdatePage('JobId', 'New');
                return false;
            });

            var modifyButton = $("#<%=ModifyJob.ClientID %>");
            var chainGangJobsList = $("#<%=SPChainGangJobs.ClientID %>");
            modifyButton.click(function () {
                UpdatePage('JobId', chainGangJobsList.val());
                return false;
            });

            var viewReportButton = $("#<%=ViewReportButton.ClientID %>");
            var reportsListBox = $("#<%=ReportsListBox.ClientID %>");
            viewReportButton.click(function () {
                window.location = reportsListBox.val();
                return false;
            });

            /*
            function scrollbarWidth() {
            var div = $('<div style="width:50px;height:50px;overflow:hidden;position:absolute;top:-200px;left:-200px;"><div style="height:100px;"></div>');
            // Append our div, do our calculation and then remove it
            $('body').append(div);
            var w1 = $('div', div).innerWidth();
            div.css('overflow-y', 'scroll');
            var w2 = $('div', div).innerWidth();
            $(div).remove();
            return (w1 - w2);
            }

            var scrollBarWidth = scrollbarWidth();
            */

        });
    </script>
    <table width="100%" class="propertysheet" cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td class="ms-descriptionText">
                <asp:Label ID="LabelMessage" runat="server" class="ms-descriptionText" />
            </td>
        </tr>
        <tr>
            <td class="ms-error">
                <asp:Label ID="LabelErrorMessage" runat="server" Visible="false" />
            </td>
        </tr>
        <tr>
            <td class="ms-descriptionText">
                <asp:ValidationSummary ID="ValSummary" HeaderText="This page contains one or more errors. Fix the following before continuing:"
                    DisplayMode="BulletList" ShowSummary="True" runat="server"></asp:ValidationSummary>
            </td>
        </tr>
        <tr>
            <td>
                <img src="/_layouts/images/blank.gif" width="10" height="1" alt="" />
            </td>
        </tr>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet" width="100%">
    	<wssuc:InputFormSection runat="server"
		        Title="<%$Resources:spadmin, multipages_sitecollection_title%>"
		        Description="<%$Resources:spadmin, multipages_sitecollection_desc%>" >
		    <Template_InputFormControls>
			    <tr><td>
			    <SharePoint:SiteAdministrationSelector id="SiteCollectionSelector" runat="server" AllowChange="true" />
			    </td></tr>
		    </Template_InputFormControls>
	    </wssuc:InputFormSection>
        <wssuc:InputFormSection runat="server" Title="Scheduled Link Scans" Description="Modify the schedule of scans for this site collection"
            id="ScheduledScansSection" Visible="False" EnableViewState="false">
            <template_inputformcontrols>
	            <wssuc:InputFormControl runat="server">
	                <Template_Control>
		                <table width="100%" border="0">
		                    <tr>
		                        <td valign="top" rowspan="3" width="210px">
		                            <asp:ListBox  ID="SPChainGangJobs" runat="server" Width="200px" Height="100px" SelectionMode="Single" />
		                        </td>
		                        <td valign="top">
		                            <asp:Button ID="AddJob" Width="60" runat="server" Text="Add" CssClass="ms-ButtonHeightWidth"/>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <asp:Button ID="RemoveJob" Width="60" runat="server" Text="Remove" CssClass="ms-ButtonHeightWidth" OnClick="DeleteJob" />
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <asp:Button ID="ModifyJob" Width="60" runat="server" Text="Modify" CssClass="ms-ButtonHeightWidth" />
		                        </td>
                            </tr>
		                </table>
	                </Template_Control>
	            </wssuc:InputFormControl>
	        </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection runat="server" Title="View Reports" Description="Once scans are complete the reports can be viewed here"
            id="ReportsSection" Visible="False" EnableViewState="false">
            <template_inputformcontrols>
	            <wssuc:InputFormControl runat="server">
	                <Template_Control>
		                <table Width="270px" border="0">
		                    <tr>
		                        <td colspan="2" valign="top">
                                    <div style="width:270px; height:100px; overflow:auto;">
                                        <!-- TODO: make a horizontal scroolbox -->
		                                <asp:ListBox  ID="ReportsListBox" runat="server" Width="270px" Height="100px"  />
                                     </div>
		                        </td>
                            </tr>
                            <tr>
                                <td>
                                    <table Width="270px" border="0"><tr>
		                            <td valign="top">
		                                <asp:Button ID="ViewReportButton" runat="server" Text="View Report" CssClass="ms-ButtonHeightWidth" OnClick="btnViewReport_Click" />
		                            </td>
                                    <td class="ms-propertysheet" valign="middle" align="right">
                                        <asp:HyperLink runat="server" CssClass="ms-splinkbutton-text" ID="ReportsListHyperlink" Text="View Reports List"  />
                                    </td>
                                    </tr></table>
                                </td>
		                    </tr>
		                </table>
	                </Template_Control>
	            </wssuc:InputFormControl>
	        </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection runat="server" Title="Scan Title" Description="Please enter a title for this scan to easily identify it in the list of scheduled scans"
            id="ScanTitleSection" Visible="False" EnableViewState="false">
            <template_inputformcontrols>
	            <wssuc:InputFormControl runat="server">
	                <Template_Control>
				        <SharePoint:InputFormTextBox Title="Title:" class="ms-input" ID="NewScanTitle" Columns="35" Runat="server" MaxLength=255 />
					    <SharePoint:InputFormRequiredFieldValidator
						    ID="ReqValNewScanTitle"
						    ControlToValidate="NewScanTitle"
						    ErrorMessage="Missing job title."
						    Runat="server"/>
	                </Template_Control>
	            </wssuc:InputFormControl>
	        </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection id="JobDetailsSection" Title="Job Properties" runat="server"
            Visible="False" EnableViewState="false">
            <template_description>
			    <SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="This section lists the properties for this job." EncodeMethod='HtmlEncodeAllowSimpleTextFormatting'/>
		    </template_description>
            <template_inputformcontrols>
			    <tr>
				    <td nowrap valign="top">Job title:</td>
				    <td><SharePoint:EncodedLiteral id="LabelJobTitle" EncodeMethod="HtmlEncode" runat="server"/>&nbsp;</td>
			    </tr>	
			    <tr>
				    <td nowrap>Web application:</td>
				    <td nowrap><asp:Label id="LabelWebApplication" runat="server"/>&nbsp;</td>
			    </tr>
			    <tr>
				    <td><IMG SRC="/_layouts/images/blank.gif" width=1 height=2 alt=""></td>
			    </tr>
			    <tr>
				    <td nowrap>Last run time:</td>
				    <td nowrap><asp:Label id="LabelLastRunTime" runat="server"/>&nbsp;</td>
			    </tr>
			    <tr>
				    <td nowrap>Enabled:</td>
				    <td nowrap><asp:Label id="LabelEnabled" runat="server"/>&nbsp;</td>
			    </tr>
			    <tr>
				    <td nowrap>Schedule:</td>
				    <td nowrap><asp:Label id="LabelSchedule" runat="server"/>&nbsp;</td>
			    </tr>
		    </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection runat="server" Title="Email Notification" Description="Please specify a list of emails to be notified upon scan completion (semicolon-separated)"
            id="EmailsSection" Visible="False" EnableViewState="false">
            <template_inputformcontrols>
	            <wssuc:InputFormControl runat="server">
	                <Template_Control>
				        <SharePoint:InputFormTextBox Title="Emails:" class="ms-input" ID="NotificationEmails" Columns="35" Runat="server" />
	                </Template_Control>
	            </wssuc:InputFormControl>
	        </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection runat="server" Title="Scan Configuration" Description="Please specify the list containing configuration parameters for this scan"
            id="ConfigureScanSection" Visible="False" EnableViewState="false">
            <template_inputformcontrols>
	            <wssuc:InputFormControl runat="server">
	                <Template_Control>
				        <ChainGang:ListPicker runat="server" ID="ConfigurationListPicker" Caption="Get configuration mappings from this list:" /><br />
                        <asp:HyperLink runat="server" ID="CreateConfigurationListHyperlink" CssClass="ms-splinkbutton-text" NavigateUrl="{0}/_layouts/new.aspx?FeatureId={{{1}}}&amp;ListTemplate={2}" Text="Create and fill a separate configuration list for this scan" />
	                </Template_Control>
	            </wssuc:InputFormControl>
	        </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection runat="server" Title="Scan Mode" Description="Please choose a mode for this scan"
            id="ScanModeSection" Visible="False" EnableViewState="false">
            <template_inputformcontrols>
	            <wssuc:InputFormControl runat="server">
	                <Template_Control>
                        <table class="ms-authoringcontrols" border="0" width="100%" cellspacing="0" cellpadding="0">
                            <tr>
                                <td class="ms-authoringcontrols" colspan="2" nowrap>
                                    Operational mode for this scan
                               </td>
                            </tr>
                            <tr>
    	                        <td><IMG SRC="/_layouts/images/blank.gif" width=1 height=3 alt=""></td>
                            </tr>
                            <tr>
                                <td width="11" ><IMG SRC="/_layouts/images/blank.gif" width=11 height=1 alt=""></td>
		                        <td class="ms-authoringcontrols" width="99%">
                                    <asp:DropDownList runat="server" ID="ConfigureScanMode" />
                                </td>
                            </tr>
                            <tr>
    	                        <td><IMG SRC="/_layouts/images/blank.gif" width=1 height=6 alt=""></td>
                            </tr>
                        </table>
	                </Template_Control>
	            </wssuc:InputFormControl>
	        </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection id="SectionScheduleType" Title="Schedule Type" runat="server"
            Visible="False" EnableViewState="false">
            <template_description>
			    Modify the job's schedule
		    </template_description>
            <template_inputformcontrols>
                <asp:Panel  id="RegularSchedulePanel"  runat="server">
                 <asp:RadioButton id="RadioButtonSPYearlySchedule" 
     AutoPostBack="True"
     Checked="False"
     GroupName="PHRadioSchedule"
     Text="Yearly"
   
     runat="server"/>
      <br />
     <asp:RadioButton id="RadioButtonSPMonthlySchedule" 
     AutoPostBack="True"
     Checked="False"
     GroupName="PHRadioSchedule"
     Text="Monthly"
     
     runat="server"/>
     <br />
     <asp:RadioButton id="RadioButtonSPWeeklySchedule" 
     AutoPostBack="True"
     Checked="False"
     GroupName="PHRadioSchedule"
     Text="Weekly"
   
     runat="server"/>
      <br />
     <asp:RadioButton id="RadioButtonSPDailySchedule" 
     AutoPostBack="True"
     Checked="False"
     GroupName="PHRadioSchedule"
     Text="Daily"
   
     runat="server"/>
      <br />
     <asp:RadioButton id="RadioButtonSPHourlySchedule" 
     AutoPostBack="True"
     Checked="False"
     GroupName="PHRadioSchedule"
     Text="Hourly"
    
     runat="server"/>
      <br />
      <asp:RadioButton id="RadioButtonSPMinutesSchedule" 
     AutoPostBack="True"
     Checked="False"
     GroupName="PHRadioSchedule"
     Text="Minutes"
   
     runat="server"/>
      <br />
      </asp:Panel>
      <asp:RadioButton id="RadioButtonSPOneTimeSchedule" 
     AutoPostBack="True"
     Checked="False"
     GroupName="PHRadioSchedule"
     Text="One-time"
      
     runat="server"/>	

		    </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection id="SectionScheduleSettings" Title="Additional Schedule Settings"
            runat="server" Visible="False" EnableViewState="true">
            <template_description>
			    Specify detailed settings for the schedule you selected.<br /><br />
                The begin and end properties specify a time window when a job should be started and have no effect on when the job finishes. The timer service will pick a random time between the begin and end and will start the job at that time. This feature is primarily used for resource-intensive jobs that run on multiple computers in the farm. The randomized start time ensures that they do not all start simultaneously, which could adversely affect server availability. To start the job at a precise time, the begin and end values for the schedule should be identical.
		    </template_description>
            <template_inputformcontrols>
                <wssuc:InputFormControl runat="server" id="ScheduleValidator" Visible="False" class="ms-authoringcontrols" >
                    <Template_control> 
                        <asp:CustomValidator id="ScheduleLogicValidator" runat="server" ValidateEmptyText="True" OnServerValidate="ScheduleValidator_Validate" />
                    </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" id="EmptyScheduleMessage" Visible="False" class="ms-authoringcontrols" >
                    <Template_control> 
                        <asp:Label runat="server" Text="Please make a selection of the schedule type above." />
                    </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="Begin Day" >
	                <Template_control> 
					    <wssawc:InputFormTextBox Title="BeginDay" class="ms-input" ID="TxtBeginDay" Columns="35" Runat="server" MaxLength=255 />
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="End Day" >
	                <Template_control> 
					    <wssawc:InputFormTextBox Title="EndDay" class="ms-input" ID="TxtEndDay" Columns="35" Runat="server" MaxLength=255 />
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="Begin Day of Week" >
	                <Template_control> 
	                    <asp:DropDownList class="ms-input" runat="server" ID="DDLBeginDayOfWeek">
	                        <asp:ListItem>Sunday</asp:ListItem>
	                        <asp:ListItem>Monday</asp:ListItem>
	                        <asp:ListItem>Tuesday</asp:ListItem>
	                        <asp:ListItem>Wednesday</asp:ListItem>
	                        <asp:ListItem>Thursday</asp:ListItem>
	                        <asp:ListItem>Friday</asp:ListItem>
	                        <asp:ListItem>Saturday</asp:ListItem>
	                    </asp:DropDownList>
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="End Day of Week" >
	                <Template_control> 
	                    <asp:DropDownList class="ms-input" runat="server" ID="DDLEndDayOfWeek">
	                        <asp:ListItem>Sunday</asp:ListItem>
	                        <asp:ListItem>Monday</asp:ListItem>
	                        <asp:ListItem>Tuesday</asp:ListItem>
	                        <asp:ListItem>Wednesday</asp:ListItem>
	                        <asp:ListItem>Thursday</asp:ListItem>
	                        <asp:ListItem>Friday</asp:ListItem>
	                        <asp:ListItem>Saturday</asp:ListItem>
	                    </asp:DropDownList>
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="Begin Hour" >
	                <Template_control> 
					    <wssawc:InputFormTextBox Title="BeginHour" class="ms-input" ID="TxtBeginHour" Columns="35" Runat="server" MaxLength=255 />
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="End Hour" >
	                <Template_control> 
					    <wssawc:InputFormTextBox Title="EndHour" class="ms-input" ID="TxtEndHour" Columns="35" Runat="server" MaxLength=255 />
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="Begin Minute" >
	                <Template_control> 
					    <wssawc:InputFormTextBox Title="BeginMinute" class="ms-input" ID="TxtBeginMinute" Columns="35" Runat="server" MaxLength=255 />
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="End Minute" >
	                <Template_control> 
					    <wssawc:InputFormTextBox Title="EndMinute" class="ms-input" ID="TxtEndMinute" Columns="35" Runat="server" MaxLength=255 />
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="Begin Month" >
	                <Template_control> 
	                    <asp:DropDownList class="ms-input" runat="server" ID="DDLBeginMonth">
	                        <asp:ListItem Value="1">Jan</asp:ListItem>
	                        <asp:ListItem Value="2">Feb</asp:ListItem>
	                        <asp:ListItem Value="3">Mar</asp:ListItem>
	                        <asp:ListItem Value="4">Apr</asp:ListItem>
	                        <asp:ListItem Value="5">May</asp:ListItem>
	                        <asp:ListItem Value="6">Jun</asp:ListItem>
	                        <asp:ListItem Value="7">Jul</asp:ListItem>
	                        <asp:ListItem Value="8">Aug</asp:ListItem>
	                        <asp:ListItem Value="9">Sep</asp:ListItem>
	                        <asp:ListItem Value="10">Oct</asp:ListItem>
	                        <asp:ListItem Value="11">Nov</asp:ListItem>
	                        <asp:ListItem Value="12">Dec</asp:ListItem>
	                    </asp:DropDownList>
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="End Month" >
	                <Template_control> 
	                    <asp:DropDownList class="ms-input" runat="server" ID="DDLEndMonth">
	                        <asp:ListItem Value="1">Jan</asp:ListItem>
	                        <asp:ListItem Value="2">Feb</asp:ListItem>
	                        <asp:ListItem Value="3">Mar</asp:ListItem>
	                        <asp:ListItem Value="4">Apr</asp:ListItem>
	                        <asp:ListItem Value="5">May</asp:ListItem>
	                        <asp:ListItem Value="6">Jun</asp:ListItem>
	                        <asp:ListItem Value="7">Jul</asp:ListItem>
	                        <asp:ListItem Value="8">Aug</asp:ListItem>
	                        <asp:ListItem Value="9">Sep</asp:ListItem>
	                        <asp:ListItem Value="10">Oct</asp:ListItem>
	                        <asp:ListItem Value="11">Nov</asp:ListItem>
	                        <asp:ListItem Value="12">Dec</asp:ListItem>
	                    </asp:DropDownList>
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="Begin Second" >
	                <Template_control> 
					    <wssawc:InputFormTextBox Title="BeginSecond" class="ms-input" ID="TxtBeginSecond" Columns="35" Runat="server" MaxLength=255 />
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="End Second" >
	                <Template_control> 
					    <wssawc:InputFormTextBox Title="EndSecond" class="ms-input" ID="TxtEndSecond" Columns="35" Runat="server" MaxLength=255 />
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="Interval" >
	                <Template_control> 
					    <wssawc:InputFormTextBox Title="Interval" class="ms-input" ID="TxtInterval" Columns="35" Runat="server" MaxLength=255 />
	                </Template_control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="Time" >
	                <Template_control> 
					    <wssawc:DateTimeControl CssClassTextBox="ms-input" EnableViewState="true" ID="DTCTime" Runat="server" />
	                </Template_control>
                </wssuc:InputFormControl>
		    </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:ButtonSection id="Buttons" runat="server" Visible="False" EnableViewState="false">
            <template_buttons>
			    <asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="BtnExecute_Click" Text="Execute" id="BtnExecute" Visible="False"/>
			    <asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="BtnDelete_Click" Text="Delete" id="BtnDelete" Visible="False"/>
			    <asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="BtnSaveJob_Click" Text="OK" id="BtnEditJob"/>
		    </template_buttons>
        </wssuc:ButtonSection>
    </table>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
SPChainGang Manager
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
SPChainGang Manager
</asp:Content>
